//
//  MMHttpTools.h
//  BAISIBUDEJIE
//
//  Created by li  bo on 16/5/20.
//  Copyright © 2016年 li  bo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MMHttpTools : NSObject
//Get请求
+(void)getWithURL:(NSString *)url parameters:(NSDictionary *)parames success:(void (^)(id json))lbsuccess failure:(void(^)(NSError *error))lbfailure;

//Post请求
+(void)postWithURL:(NSString *)url parameters:(NSDictionary *)parames success:(void (^)(id json))lbsuccess failure:(void(^)(NSError *error))lbfailure;

//上传图片
+(void)postWithURL:(NSString *)url parameters:(NSDictionary *)parames data:(NSData *)data success:(void (^)(id json))lbsuccess failure:(void (^)(NSError *error))lbfailure;
@end
